/**
 * Copyright (c) 2020 INESC TEC <https://www.inesctec.pt>
 *
 * This Source Code Form is subject to the terms of the European Union
 * Public License, v. 1.2. If a copy of the EUPL was not distributed with
 * this file, You can obtain one at https://opensource.org/licenses/EUPL-1.2.
 *
 * SPDX-License-Identifier: EUPL-1.2
 */

import React, { useEffect } from 'react';
import { Provider as ReduxProvider } from 'react-redux';

import createStore from '@app/redux';

import Root from '@app/containers/Root';

import FontFix from '@app/common/utils/fontFix';

const store = createStore();

export default function App () {
  useEffect(() => {
    FontFix();
  });

  return (
    <ReduxProvider store={store}>
      <Root />
    </ReduxProvider>
  );
}
